/**
 * 通用js 全局  在main.js 中引入
 */

 const baseURL = "http://localhost:8888"

 // 下载导出文件
 export function download(fileName){
     window.location.href = baseURL + "/download?fileName=" + encodeURI(fileName) + "&delete=" + true;
 }

export function downloadFile(userId,awardsId){
    window.location.href = baseURL + "/apply/downloadFile?userId="+encodeURI(userId) +"&awardsId=" +encodeURI(awardsId);
}

 // 下载模板文件
 export function templateDownload(fileName){
     window.location.href = baseURL + "/templateDownload?fileName=" + encodeURI(fileName);
 }